package com.yskj.mwk.bean.web;

import com.yskj.mwk.controller.WuliuController;
import com.yskj.mwk.dao.ManagerMapper;
import com.yskj.mwk.service.ManagerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class RefreshWaitOrder {
    @Autowired
    private ManagerService managerService;

    @Scheduled(cron = "0/5 * * * * ?")
    public void refreshOrders(){
        System.out.println("执行定时");
        managerService.refreshWaitOrder();
    }
}
